package com.ruoyi.service.impl;

import java.util.List;

import com.ruoyi.domain.BasisTaskSubmission;
import com.ruoyi.mapper.BasisTaskSubmissionMapper;
import com.ruoyi.service.IBasisTaskSubmissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 任务提交Service业务层处理
 * 
 * @author wangzebing
 * @date 2025-04-02
 */
@Service
public class BasisTaskSubmissionServiceImpl implements IBasisTaskSubmissionService
{
    @Autowired
    private BasisTaskSubmissionMapper basisTaskSubmissionMapper;

    /**
     * 查询任务提交
     * 
     * @param id 任务提交主键
     * @return 任务提交
     */
    @Override
    public BasisTaskSubmission selectBasisTaskSubmissionById(Long id)
    {
        return basisTaskSubmissionMapper.selectBasisTaskSubmissionById(id);
    }

    /**
     * 查询任务提交列表
     * 
     * @param basisTaskSubmission 任务提交
     * @return 任务提交
     */
    @Override
    public List<BasisTaskSubmission> selectBasisTaskSubmissionList(BasisTaskSubmission basisTaskSubmission)
    {
        return basisTaskSubmissionMapper.selectBasisTaskSubmissionList(basisTaskSubmission);
    }

    /**
     * 新增任务提交
     * 
     * @param basisTaskSubmission 任务提交
     * @return 结果
     */
    @Override
    public int insertBasisTaskSubmission(BasisTaskSubmission basisTaskSubmission)
    {
        return basisTaskSubmissionMapper.insertBasisTaskSubmission(basisTaskSubmission);
    }

    /**
     * 修改任务提交
     * 
     * @param basisTaskSubmission 任务提交
     * @return 结果
     */
    @Override
    public int updateBasisTaskSubmission(BasisTaskSubmission basisTaskSubmission)
    {
        return basisTaskSubmissionMapper.updateBasisTaskSubmission(basisTaskSubmission);
    }

    /**
     * 批量删除任务提交
     * 
     * @param ids 需要删除的任务提交主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskSubmissionByIds(Long[] ids)
    {
        return basisTaskSubmissionMapper.deleteBasisTaskSubmissionByIds(ids);
    }

    /**
     * 删除任务提交信息
     * 
     * @param id 任务提交主键
     * @return 结果
     */
    @Override
    public int deleteBasisTaskSubmissionById(Long id)
    {
        return basisTaskSubmissionMapper.deleteBasisTaskSubmissionById(id);
    }
}
